import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'normalize.css'
import '@/styles/comm.css'
import ComponentsJs from '@/components'
import filtersObj from '@/filters/index.js'

// 全局注册过滤器
for (const key in filtersObj) {
  Vue.filter(key, filtersObj[key])
}

Vue.use(Vant)
Vue.use(ComponentsJs)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
